﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Client.ServiceReference1;
using Entity;

namespace Client
{
    class Program
    {
        static void Main(string[] args)
        {
            using (UserServiceClient proxy = new UserServiceClient())
            {
                UserBases_Ext entity = (UserBases_Ext)VCommons.SerializationHelper.ByteArrayToObject(proxy.GetUserByID(1));
                Console.Write(entity == null ? "没有找到" : entity.Name);

                UserBases entity2 = proxy.GetUserBaseByID(1);//soap不支持复杂类型
                Console.Write(entity2 == null ? "没有找到" : entity2.Name);
                Console.ReadKey();
            }

        }
    }
}
